import { ArticleInfoType } from '@/types/data'
import { ArticleAction } from '@/types/store'
type ArticleInitType = ArticleInfoType | {}
// 用户信息的reducer
function articleInfo (state: ArticleInitType = {}, action: ArticleAction) {
  switch (action.type) {
    // 存储 用户信息
    case 'articleInfo/save':
      return action.payload
    default:
      return state
  }
}

export default articleInfo
